package com.cainiao.stock.mapper;

import com.cainiao.stock.entity.StockMarketIndexInfo;
import com.cainiao.stock.vo.TradevolVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author zby
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @created 2024-06-17 20:58:15
* 对应实体类{@link StockMarketIndexInfo}
*/
@Mapper
public interface StockMarketIndexInfoMapper {

    List<StockMarketIndexInfo> selectByIdsAndDateTime(@Param("ids") List<String> ids,@Param("last") LocalDateTime last);

    List<TradevolVO.TradevolBean> selectTradevol(@Param("open") LocalDateTime t1Open, @Param("close") LocalDateTime tClose,@Param("ids") List<String> ids);

    void insertBatch(@Param("list") List<StockMarketIndexInfo> list);
}




